import service from '@/utils/request'


export const publicityApi = (id: number) => {
	return service.get('/new/new/publicity/' + id)
}

export const publicityListApi = () => {
	return service.get('/new/new/publicity/allList')
}

export const publicitySubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/publicity', dataForm)
	} else {
		return service.post('/new/new/publicity', dataForm)
	}
}


